﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using POSSystem.DAL;

namespace POSSystem.BLL
{
    public class StockLocation : _StockLocation
    {
        public static StockLocation GetAllActiceStockLocation()
        {
            try
            {
                StockLocation location = new StockLocation();
                location.Where.Deleted.Value = false;
                location.Where.BranchID.Value = Branches.CurrentBranchID;
                location.Query.Load();

                return location;
            }
            catch (Exception e)
            {
                ErrorLog.WriteToFile("StockLocation.cs", "GetAllActiceStockLocation", e.StackTrace);
                throw e;
            }
        }

    }
}
